<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:17:31 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git remote</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Sharing_and_Updating_Projects">
                                Sharing and Updating Projects                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="1897991d9847455b7a6dfd43e0b27956f198cd3255d4070f5910c73ed36acd94/71" data-source="git-remote" onmousemove="i18n(this)">git-remote</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="38c01f395bcbc3e20c6caffeffbf66dcdf745d2de9fff4771a305b049a359414/d6" data-source="git-remote - Manage set of tracked repositories" onmousemove="i18n(this)">git-remote &mdash; &Ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &ncy;&acy;&bcy;&ocy;&rcy;&ocy;&mcy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&iecy;&vcy;</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-scss">git remote <span class="hljs-selector-attr">[-v | --verbose]</span>
git remote add <span class="hljs-selector-attr">[-t &lt;branch&gt;]</span> <span class="hljs-selector-attr">[-m &lt;master&gt;]</span> <span class="hljs-selector-attr">[-f]</span> <span class="hljs-selector-attr">[--[no-]</span>tags] <span class="hljs-selector-attr">[--mirror=(fetch|push)]</span> &lt;name&gt; &lt;URL&gt;
git remote rename <span class="hljs-selector-attr">[--[no-]</span>progress] &lt;old&gt; &lt;new&gt;
git remote remove &lt;name&gt;
git remote set-head &lt;name&gt; (-a | --auto | -d | --delete | &lt;branch&gt;)
git remote set-branches <span class="hljs-selector-attr">[--add]</span> &lt;name&gt; &lt;branch&gt;&hellip;&ZeroWidthSpace;
git remote get-url <span class="hljs-selector-attr">[--push]</span> <span class="hljs-selector-attr">[--all]</span> &lt;name&gt;
git remote set-url <span class="hljs-selector-attr">[--push]</span> &lt;name&gt; &lt;newurl&gt; <span class="hljs-selector-attr">[&lt;oldurl&gt;]</span>
git remote set-url <span class="hljs-attr">--add</span> <span class="hljs-selector-attr">[--push]</span> &lt;name&gt; &lt;newurl&gt;
git remote set-url <span class="hljs-attr">--delete</span> <span class="hljs-selector-attr">[--push]</span> &lt;name&gt; &lt;URL&gt;
git remote <span class="hljs-selector-attr">[-v | --verbose]</span> show <span class="hljs-selector-attr">[-n]</span> &lt;name&gt;&hellip;&ZeroWidthSpace;
git remote prune <span class="hljs-selector-attr">[-n | --dry-run]</span> &lt;name&gt;&hellip;&ZeroWidthSpace;
git remote <span class="hljs-selector-attr">[-v | --verbose]</span> update <span class="hljs-selector-attr">[-p | --prune]</span> <span class="hljs-selector-attr">[(&lt;group&gt; | &lt;remote&gt;)&hellip;&ZeroWidthSpace;]</span></pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="c08d0e63893217d0a09fd7626721b2567dea9195409257c5f155d21908d3542a/64" data-source="Manage the set of repositories (&amp;quot;remotes&amp;quot;) whose branches you track." onmousemove="i18n(this)">&Ucy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&jcy;&tcy;&iecy; &ncy;&acy;&bcy;&ocy;&rcy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&iecy;&vcy; ( &quot;remotes&quot; ), &vcy;&iecy;&tcy;&kcy;&icy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &vcy;&ycy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy;&iecy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_options"><span data-i18n="d0db8b5e364b6989e4b8f38a2b3846b87d99a51c1592ebf35d21cc66405a8e39/b6" data-source="Options" onmousemove="i18n(this)">Options</span></h2> <div> <div> <dl> <dt id="Documentation/git-remote.txt--v"><span data-i18n="81c36ccd44ef18baabad6e2d87038b72d606263bd6a3432b964a872023654fff/7c" data-source="-v" onmousemove="i18n(this)">-v</span></dt> <dt id="Documentation/git-remote.txt---verbose"><span data-i18n="bff1e8d3adf9e53481e9b21876983b359dc8a231bf7ebadde36a42dd7bd4db5c/93" data-source="--verbose" onmousemove="i18n(this)">--verbose</span></dt> <dd> <p><span data-i18n="2625431938588fc3b7c35db70dcd0b64a6e906a20b9acd1013b203b83b154989/58" data-source="Be a little more verbose and show remote url after name. For promisor remotes, also show which filter (&lt;code&gt;blob:none&lt;/code&gt; etc.) are configured. NOTE: This must be placed between &lt;code&gt;remote&lt;/code&gt; and subcommand." onmousemove="i18n(this)">&Bcy;&ucy;&dcy;&softcy;&tcy;&iecy; &ncy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ycy;&mcy;&icy; &icy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&jcy;&tcy;&iecy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; URL-&acy;&dcy;&rcy;&iecy;&scy; &pcy;&ocy;&scy;&lcy;&iecy; &icy;&mcy;&iecy;&ncy;&icy;. &Dcy;&lcy;&yacy; &pcy;&ucy;&lcy;&softcy;&tcy;&ocy;&vcy; Promisor &tcy;&acy;&kcy;&zhcy;&iecy; &ucy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy;, &kcy;&acy;&kcy;&ocy;&jcy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy; ( <code>blob:none</code>  &icy; &tcy;.&nbsp;&dcy;.) &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;. &Pcy;&Rcy;&Icy;&Mcy;&IEcy;&CHcy;&Acy;&Ncy;&Icy;&IEcy;. &IEcy;&gcy;&ocy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &pcy;&ocy;&mcy;&iecy;&scy;&tcy;&icy;&tcy;&softcy; &mcy;&iecy;&zhcy;&dcy;&ucy;  <code>remote</code>  &icy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_commands"><span data-i18n="b269dc4e81a528a4d42e9e74101923514a626f55f8dd76b1461e0690e72d041a/f5" data-source="Commands" onmousemove="i18n(this)">Commands</span></h2> <div> <p><span data-i18n="9e4366727169d6aece45dbf9c5d5e4fbcae0cad0e8bc7796472fc74f9ba12f38/04" data-source="With no arguments, shows a list of existing remotes. Several subcommands are available to perform operations on the remotes." onmousemove="i18n(this)">&Bcy;&iecy;&zcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &pcy;&ucy;&lcy;&softcy;&tcy;&ocy;&vcy;. &Dcy;&lcy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&jcy; &ncy;&acy; &pcy;&ucy;&lcy;&softcy;&tcy;&acy;&khcy; &dcy;&icy;&scy;&tcy;&acy;&ncy;&tscy;&icy;&ocy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ocy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;.</span></p> <div> <dl> <dt id="Documentation/git-remote.txt-emaddem"> <span data-i18n="42789d98df8b618e5f8ca222d9702ee481f73be341296638a01b545f95f73617/bf" data-source="&lt;em&gt;add&lt;/em&gt;" onmousemove="i18n(this)"><em>add</em></span> </dt> <dd> <p><span data-i18n="a8bc7667c7daaa39734778dcb9a3a10c5888465e84efa707b5cc9108b32454ba/7d" data-source="Add a remote named &amp;lt;name&amp;gt; for the repository at &amp;lt;URL&amp;gt;. The command &lt;code&gt;git fetch &amp;lt;name&amp;gt;&lt;/code&gt; can then be used to create and update remote-tracking branches &amp;lt;name&amp;gt;/&amp;lt;branch&amp;gt;." onmousemove="i18n(this)">&Dcy;&ocy;&bcy;&acy;&vcy;&softcy;&tcy;&iecy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &scy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &lt;name&gt; &dcy;&lcy;&yacy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &pcy;&ocy; &acy;&dcy;&rcy;&iecy;&scy;&ucy; &lt;URL&gt;. &Zcy;&acy;&tcy;&iecy;&mcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  <code>git fetch &lt;name&gt;</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &lt;&icy;&mcy;&yacy;&gt;/&lt;&vcy;&iecy;&tcy;&vcy;&softcy;&gt;.</span></p> <p><span data-i18n="8b7e9c85f3dd2be34d6537ad72d6cf7dada8b7c533e6f7bfe09cc8fa357d3199/78" data-source="With &lt;code&gt;-f&lt;/code&gt; option, &lt;code&gt;git fetch &amp;lt;name&amp;gt;&lt;/code&gt; is run immediately after the remote information is set up." onmousemove="i18n(this)">&Scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>-f</code> <code>git fetch &lt;name&gt;</code>  &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&rcy;&acy;&zcy;&ucy; &pcy;&ocy;&scy;&lcy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy;.</span></p> <p><span data-i18n="82d1463856f2b37a0403e3f8a11835a0ab5ff24c30952e96d857e9d9edd81ed1/d8" data-source="With &lt;code&gt;--tags&lt;/code&gt; option, &lt;code&gt;git fetch &amp;lt;name&amp;gt;&lt;/code&gt; imports every tag from the remote repository." onmousemove="i18n(this)">&Scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--tags</code> <code>git fetch &lt;name&gt;</code>  &icy;&mcy;&pcy;&ocy;&rcy;&tcy;&icy;&rcy;&ucy;&iecy;&tcy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &tcy;&iecy;&gcy; &icy;&zcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> <p><span data-i18n="65920fd9a35483e7c0b8532a7a53543bd24ed23ff0c4b37d8d124bedae13054a/1e" data-source="With &lt;code&gt;--no-tags&lt;/code&gt; option, &lt;code&gt;git fetch &amp;lt;name&amp;gt;&lt;/code&gt; does not import tags from the remote repository." onmousemove="i18n(this)">&Scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--no-tags</code> <code>git fetch &lt;name&gt;</code>  &ncy;&iecy; &icy;&mcy;&pcy;&ocy;&rcy;&tcy;&icy;&rcy;&ucy;&iecy;&tcy; &tcy;&iecy;&gcy;&icy; &icy;&zcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> <p><span data-i18n="8b329852234619f0aa31982364ce1b6fec87d27e651767f221443897d1a7cf5c/f3" data-source="By default, only tags on fetched branches are imported (see &lt;a href=&quot;git-fetch&quot;&gt;git-fetch[1]&lt;/a&gt;)." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy;&mcy;&pcy;&ocy;&rcy;&tcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&iecy;&gcy;&icy; &vcy;&ycy;&bcy;&rcy;&acy;&ncy;&ncy;&ycy;&khcy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy; (&scy;&mcy;.  <a href="git-fetch.html">git-fetch[1]</a> ).</span></p> <p><span data-i18n="0baea97af9bbf23948965c0bafe86430ecdbfffe488cc1b561d9de0f0e25a61d/14" data-source="With &lt;code&gt;-t &amp;lt;branch&amp;gt;&lt;/code&gt; option, instead of the default glob refspec for the remote to track all branches under the &lt;code&gt;refs/remotes/&amp;lt;name&amp;gt;/&lt;/code&gt; namespace, a refspec to track only &lt;code&gt;&amp;lt;branch&amp;gt;&lt;/code&gt; is created. You can give more than one &lt;code&gt;-t &amp;lt;branch&amp;gt;&lt;/code&gt; to track multiple branches without grabbing all branches." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &ocy;&pcy;&tscy;&icy;&icy;  <code>-t &lt;branch&gt;</code>  &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&jcy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; &dcy;&lcy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy; &vcy; &pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&scy;&tcy;&vcy;&iecy; &icy;&mcy;&iecy;&ncy;  <code>refs/remotes/&lt;name&gt;/</code>  &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &dcy;&lcy;&yacy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy;  <code>&lt;branch&gt;</code> . &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&icy;&tcy;&softcy; &bcy;&ocy;&lcy;&iecy;&iecy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy;  <code>-t &lt;branch&gt;</code>  &dcy;&lcy;&yacy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&icy;&khcy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy;, &ncy;&iecy; &zcy;&acy;&khcy;&vcy;&acy;&tcy;&ycy;&vcy;&acy;&yacy; &vcy;&scy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy;.</span></p> <p><span data-i18n="87cbe924b90d590b56b58700233c6b32c18b725c5b6603aef588a5288b864b28/5e" data-source="With &lt;code&gt;-m &amp;lt;master&amp;gt;&lt;/code&gt; option, a symbolic-ref &lt;code&gt;refs/remotes/&amp;lt;name&amp;gt;/HEAD&lt;/code&gt; is set up to point at remote&amp;rsquo;s &lt;code&gt;&amp;lt;master&amp;gt;&lt;/code&gt; branch. See also the set-head command." onmousemove="i18n(this)">&Scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>-m &lt;master&gt;</code>  &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy;  <code>refs/remotes/&lt;name&gt;/HEAD</code>  &ncy;&acy;&scy;&tcy;&rcy;&acy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &tcy;&acy;&kcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &ncy;&acy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ucy;&yucy; &vcy;&iecy;&tcy;&vcy;&softcy;  <code>&lt;master&gt;</code> . &Scy;&mcy;. &tcy;&acy;&kcy;&zhcy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; set-head.</span></p> <p><span data-i18n="ae719e9ba13b1db40010d7366be66b30a82a4777adfe2fbd6102dcab33d562cb/56" data-source="When a fetch mirror is created with &lt;code&gt;--mirror=fetch&lt;/code&gt;, the refs will not be stored in the &lt;code&gt;refs/remotes/&lt;/code&gt; namespace, but rather everything in &lt;code&gt;refs/&lt;/code&gt; on the remote will be directly mirrored into &lt;code&gt;refs/&lt;/code&gt; in the local repository. This option only makes sense in bare repositories, because a fetch would overwrite any local commits." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &zcy;&iecy;&rcy;&kcy;&acy;&lcy;&ocy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&icy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>--mirror=fetch</code> , &scy;&scy;&ycy;&lcy;&kcy;&icy; &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy;&scy;&yacy; &vcy; &pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&scy;&tcy;&vcy;&iecy; &icy;&mcy;&iecy;&ncy;  <code>refs/remotes/</code> , &acy; &vcy;&scy;&iecy;, &chcy;&tcy;&ocy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &vcy;  <code>refs/</code>  &ncy;&acy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy; &kcy;&ocy;&mcy;&pcy;&softcy;&yucy;&tcy;&iecy;&rcy;&iecy;, &bcy;&ucy;&dcy;&iecy;&tcy; &ncy;&acy;&pcy;&rcy;&yacy;&mcy;&ucy;&yucy; &zcy;&iecy;&rcy;&kcy;&acy;&lcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ocy; &vcy;  <code>refs/</code>  &vcy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &icy;&mcy;&iecy;&iecy;&tcy; &scy;&mcy;&ycy;&scy;&lcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &pcy;&ucy;&scy;&tcy;&ycy;&khcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;&khcy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&acy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&shcy;&iecy;&tcy; &lcy;&yucy;&bcy;&ycy;&iecy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy;.</span></p> <p><span data-i18n="eade7216ea985c6658027c2cc77e49b13fb259263eea1c77bb85016ab0589a08/7c" data-source="When a push mirror is created with &lt;code&gt;--mirror=push&lt;/code&gt;, then &lt;code&gt;git push&lt;/code&gt; will always behave as if &lt;code&gt;--mirror&lt;/code&gt; was passed." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &pcy;&rcy;&icy;&ncy;&ucy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&iecy; &zcy;&iecy;&rcy;&kcy;&acy;&lcy;&ocy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>--mirror=push</code> ,  <code>git push</code>  &vcy;&scy;&iecy;&gcy;&dcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&iecy;&scy;&tcy;&icy; &scy;&iecy;&bcy;&yacy; &tcy;&acy;&kcy;, &kcy;&acy;&kcy; &iecy;&scy;&lcy;&icy; &bcy;&ycy; &bcy;&ycy;&lcy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&ncy;  <code>--mirror</code> .</span></p> </dd> <dt id="Documentation/git-remote.txt-emrenameem"> <span data-i18n="bfd16d5284a315c46e428448d161ff6563119c2e9abaf7bb765634f24a263c5a/dc" data-source="&lt;em&gt;rename&lt;/em&gt;" onmousemove="i18n(this)"><em>rename</em></span> </dt> <dd> <p><span data-i18n="b5f17216972851ffa5f87f5966352cbb95c3d81f44e23425e4026c59798619fc/6b" data-source="Rename the remote named &amp;lt;old&amp;gt; to &amp;lt;new&amp;gt;. All remote-tracking branches and configuration settings for the remote are updated." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ucy;&jcy;&tcy;&iecy; &pcy;&ucy;&lcy;&softcy;&tcy; &scy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &lt;old&gt; &vcy; &lt;new&gt;. &Vcy;&scy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&acy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="e1caf9e574b1a7766b345dc35aa863e481a81bc8fc010fd444042b4025c14076/82" data-source="In case &amp;lt;old&amp;gt; and &amp;lt;new&amp;gt; are the same, and &amp;lt;old&amp;gt; is a file under &lt;code&gt;$GIT_DIR/remotes&lt;/code&gt; or &lt;code&gt;$GIT_DIR/branches&lt;/code&gt;, the remote is converted to the configuration file format." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &lt;old&gt; &icy; &lt;new&gt; &ocy;&dcy;&icy;&ncy;&acy;&kcy;&ocy;&vcy;&ycy;, &acy; &lt;old&gt; &mdash; &ecy;&tcy;&ocy; &fcy;&acy;&jcy;&lcy;  <code>$GIT_DIR/remotes</code>  &icy;&lcy;&icy;  <code>$GIT_DIR/branches</code> , &pcy;&ucy;&lcy;&softcy;&tcy; &dcy;&icy;&scy;&tcy;&acy;&ncy;&tscy;&icy;&ocy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &fcy;&acy;&jcy;&lcy;&acy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;.</span></p> </dd> <dt id="Documentation/git-remote.txt-emremoveem"> <span data-i18n="fb3cf92cd99b2d7a429f0085e3e732d4eafa1c584b1f4524fd1414af81b8fb1f/25" data-source="&lt;em&gt;remove&lt;/em&gt;" onmousemove="i18n(this)"><em>remove</em></span> </dt> <dt id="Documentation/git-remote.txt-emrmem"> <span data-i18n="89cb269b82b8215ac3b7aa1f366ff60d3764066bb6c8c2575268562b66d3648d/7c" data-source="&lt;em&gt;rm&lt;/em&gt;" onmousemove="i18n(this)"><em>rm</em></span> </dt> <dd> <p><span data-i18n="4ff79d613717ba34447be41ce782b468c280cf69c3afc069d5e44962e3b49069/ec" data-source="Remove the remote named &amp;lt;name&amp;gt;. All remote-tracking branches and configuration settings for the remote are removed." onmousemove="i18n(this)">&Ucy;&dcy;&acy;&lcy;&icy;&tcy;&iecy; &pcy;&ucy;&lcy;&softcy;&tcy; &scy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &lt;&icy;&mcy;&yacy;&gt;. &Vcy;&scy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&acy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ycy;.</span></p> </dd> <dt id="Documentation/git-remote.txt-emset-headem"> <span data-i18n="fff8ab561bab338cd9e2f1ce5ed0d022d587a4c57d374b07e0971969aa12963d/a1" data-source="&lt;em&gt;set-head&lt;/em&gt;" onmousemove="i18n(this)"><em>set-head</em></span> </dt> <dd> <p><span data-i18n="dbc479e78cc01597b335bfc99058f74d7fce01d21442e58ab1e5c15eb5d77d03/06" data-source="Sets or deletes the default branch (i.e. the target of the symbolic-ref &lt;code&gt;refs/remotes/&amp;lt;name&amp;gt;/HEAD&lt;/code&gt;) for the named remote. Having a default branch for a remote is not required, but allows the name of the remote to be specified in lieu of a specific branch. For example, if the default branch for &lt;code&gt;origin&lt;/code&gt; is set to &lt;code&gt;master&lt;/code&gt;, then &lt;code&gt;origin&lt;/code&gt; may be specified wherever you would normally specify &lt;code&gt;origin/master&lt;/code&gt;." onmousemove="i18n(this)">&Ucy;&scy;&tcy;&acy;&ncy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&iecy;&tcy; &icy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy; &vcy;&iecy;&tcy;&kcy;&ucy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; (&tcy;. &iecy;. &tscy;&iecy;&lcy;&softcy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;  <code>refs/remotes/&lt;name&gt;/HEAD</code>  ) &dcy;&lcy;&yacy; &icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&acy;. &Ncy;&acy;&lcy;&icy;&chcy;&icy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &dcy;&lcy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&acy; &ncy;&iecy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&bcy;&yacy;&zcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&mcy;, &ncy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &icy;&mcy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&acy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &kcy;&ocy;&ncy;&kcy;&rcy;&iecy;&tcy;&ncy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&icy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &vcy;&iecy;&tcy;&kcy;&acy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &dcy;&lcy;&yacy;  <code>origin</code>  &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&ncy;&acy;  <code>master</code> , &tcy;&ocy;  <code>origin</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &tcy;&acy;&mcy;, &gcy;&dcy;&iecy; &vcy;&ycy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&iecy;  <code>origin/master</code> .</span></p> <p><span data-i18n="3a9741753580cf749e6d05fab17bf299abfc5da002ffc103ab35314b4b4ccffa/d0" data-source="With &lt;code&gt;-d&lt;/code&gt; or &lt;code&gt;--delete&lt;/code&gt;, the symbolic ref &lt;code&gt;refs/remotes/&amp;lt;name&amp;gt;/HEAD&lt;/code&gt; is deleted." onmousemove="i18n(this)">&Vcy;  <code>-d</code>  &icy;&lcy;&icy;  <code>--delete</code>  &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&jcy; &ncy;&ocy;&mcy;&iecy;&rcy;  <code>refs/remotes/&lt;name&gt;/HEAD</code>  &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="6e25ca8646049fbfd0a57387df429853f985c7d92dbdcd68a86ddf6dbc543f10/0f" data-source="With &lt;code&gt;-a&lt;/code&gt; or &lt;code&gt;--auto&lt;/code&gt;, the remote is queried to determine its &lt;code&gt;HEAD&lt;/code&gt;, then the symbolic-ref &lt;code&gt;refs/remotes/&amp;lt;name&amp;gt;/HEAD&lt;/code&gt; is set to the same branch. e.g., if the remote &lt;code&gt;HEAD&lt;/code&gt; is pointed at &lt;code&gt;next&lt;/code&gt;, &lt;code&gt;git remote set-head origin -a&lt;/code&gt; will set the symbolic-ref &lt;code&gt;refs/remotes/origin/HEAD&lt;/code&gt; to &lt;code&gt;refs/remotes/origin/next&lt;/code&gt;. This will only work if &lt;code&gt;refs/remotes/origin/next&lt;/code&gt; already exists; if not it must be fetched first." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;  <code>-a</code>  &icy;&lcy;&icy;  <code>--auto</code>  &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy;&ucy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&ucy; &zcy;&acy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&iecy; &iecy;&gcy;&ocy;  <code>HEAD</code> , &zcy;&acy;&tcy;&iecy;&mcy; &dcy;&lcy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;  <code>refs/remotes/&lt;name&gt;/HEAD</code>  &ucy;&scy;&tcy;&acy;&ncy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &tcy;&acy; &zhcy;&iecy; &vcy;&iecy;&tcy;&vcy;&softcy;. &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy;  <code>HEAD</code>  &ucy;&kcy;&acy;&zcy;&acy;&ncy; &ncy;&acy;  <code>next</code>  ,  <code>git remote set-head origin -a</code>  &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy;  <code>refs/remotes/origin/HEAD</code>  &ncy;&acy;  <code>refs/remotes/origin/next</code>  . &Ecy;&tcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy;, &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &iecy;&scy;&lcy;&icy;  <code>refs/remotes/origin/next</code>  &ucy;&zhcy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;; &vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &iecy;&gcy;&ocy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy;.</span></p> <p><span data-i18n="7e684735c81990cf88f1226090d59ab71a95f21e01cdedb923a859f3ef6b7553/6a" data-source="Use &lt;code&gt;&amp;lt;branch&amp;gt;&lt;/code&gt; to set the symbolic-ref &lt;code&gt;refs/remotes/&amp;lt;name&amp;gt;/HEAD&lt;/code&gt; explicitly. e.g., &lt;code&gt;git
remote set-head origin master&lt;/code&gt; will set the symbolic-ref &lt;code&gt;refs/remotes/origin/HEAD&lt;/code&gt; to &lt;code&gt;refs/remotes/origin/master&lt;/code&gt;. This will only work if &lt;code&gt;refs/remotes/origin/master&lt;/code&gt; already exists; if not it must be fetched first." onmousemove="i18n(this)">&Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;  <code>&lt;branch&gt;</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &yacy;&vcy;&ncy;&ocy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy;  <code>refs/remotes/&lt;name&gt;/HEAD</code> . &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>git
remote set-head origin master</code>  &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy; &dcy;&lcy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&softcy;&ncy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;  <code>refs/remotes/origin/HEAD</code>  &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  <code>refs/remotes/origin/master</code>  . &Ecy;&tcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy;, &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &iecy;&scy;&lcy;&icy;  <code>refs/remotes/origin/master</code>  &ucy;&zhcy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;; &vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &iecy;&gcy;&ocy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy;.</span></p> </dd> <dt id="Documentation/git-remote.txt-emset-branchesem"> <span data-i18n="30f5f7a553f34ea936ddb6d34f7645e8fd82dd0aa185813e618fbe13a19fb6e5/6c" data-source="&lt;em&gt;set-branches&lt;/em&gt;" onmousemove="i18n(this)"><em>set-branches</em></span> </dt> <dd> <p><span data-i18n="a47f5639bda9c4e949960c91ab658de25551a951dd6f3d991e6659b7d81b445d/17" data-source="Changes the list of branches tracked by the named remote. This can be used to track a subset of the available remote branches after the initial setup for a remote." onmousemove="i18n(this)">&Icy;&zcy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy;, &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&mcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&mcy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&ocy;&mcy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &pcy;&ocy;&dcy;&mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&acy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&khcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &vcy;&iecy;&tcy;&ocy;&kcy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&iecy;&rcy;&vcy;&ocy;&ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&zcy;&lcy;&acy;.</span></p> <p><span data-i18n="36ef9a13fe9c04df378ed2df5e3a83e015fd06381cb3fa923e167232d9611cb6/4b" data-source="The named branches will be interpreted as if specified with the &lt;code&gt;-t&lt;/code&gt; option on the &lt;code&gt;git remote add&lt;/code&gt; command line." onmousemove="i18n(this)">&Icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&ncy;&tcy;&iecy;&rcy;&pcy;&rcy;&iecy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &tcy;&acy;&kcy;, &kcy;&acy;&kcy; &iecy;&scy;&lcy;&icy; &bcy;&ycy; &ocy;&ncy;&icy; &bcy;&ycy;&lcy;&icy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ycy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;  <code>-t</code>  &vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy;  <code>git remote add</code> .</span></p> <p><span data-i18n="fbb8f499ca02900432067047d54215c5db681b0420c1191860f2401e856da42b/bb" data-source="With &lt;code&gt;--add&lt;/code&gt;, instead of replacing the list of currently tracked branches, adds to that list." onmousemove="i18n(this)">&Scy;  <code>--add</code>  &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy; &scy;&pcy;&icy;&scy;&kcy;&acy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &vcy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy; &pcy;&rcy;&ocy;&icy;&scy;&khcy;&ocy;&dcy;&icy;&tcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &kcy; &ecy;&tcy;&ocy;&mcy;&ucy; &scy;&pcy;&icy;&scy;&kcy;&ucy;.</span></p> </dd> <dt id="Documentation/git-remote.txt-emget-urlem"> <span data-i18n="5c002486becabbbfd71915b291b7c531ccfeba8ddb7d44fb4865ccf9fae90307/9f" data-source="&lt;em&gt;get-url&lt;/em&gt;" onmousemove="i18n(this)"><em>get-url</em></span> </dt> <dd> <p><span data-i18n="087fd2e4bd58ecd4d594c388d89d2789971c9890858a4e83751e786b8824a65f/78" data-source="Retrieves the URLs for a remote. Configurations for &lt;code&gt;insteadOf&lt;/code&gt; and &lt;code&gt;pushInsteadOf&lt;/code&gt; are expanded here. By default, only the first URL is listed." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&ucy;&chcy;&acy;&iecy;&tcy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy; &dcy;&lcy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&acy;. &Zcy;&dcy;&iecy;&scy;&softcy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&iecy;&ncy;&ycy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &dcy;&lcy;&yacy;  <code>insteadOf</code>  &icy;  <code>pushInsteadOf</code> . &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&iecy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&iecy;&rcy;&vcy;&ycy;&jcy; URL-&acy;&dcy;&rcy;&iecy;&scy;.</span></p> <p><span data-i18n="29879354489cabd2fd91b75dcd18723e360f68352460699c5a4f10f5e87d72d1/b8" data-source="With &lt;code&gt;--push&lt;/code&gt;, push URLs are queried rather than fetch URLs." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;  <code>--push</code>  &zcy;&acy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy; push, &acy; &ncy;&iecy; &icy;&zcy;&vcy;&lcy;&iecy;&kcy;&acy;&yucy;&tcy;&scy;&yacy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy;.</span></p> <p><span data-i18n="45ebd8aa8e75c8f465eabc6fd476f04f1f94591eff7fc29db884bb867e4cfcca/81" data-source="With &lt;code&gt;--all&lt;/code&gt;, all URLs for the remote will be listed." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;  <code>--all</code>  &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&iecy;&rcy;&iecy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&ycy; &vcy;&scy;&iecy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy; &pcy;&ucy;&lcy;&softcy;&tcy;&acy; &dcy;&icy;&scy;&tcy;&acy;&ncy;&tscy;&icy;&ocy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/git-remote.txt-emset-urlem"> <span data-i18n="b331642bcd81003ab0396d64b725f82be05afb89e8989ac304a323bbc8ecfe2f/a7" data-source="&lt;em&gt;set-url&lt;/em&gt;" onmousemove="i18n(this)"><em>set-url</em></span> </dt> <dd> <p><span data-i18n="369ac2abf14980dda0b10cacacdfcd3321327fe58ed47a0055e95c64bfee7dd1/74" data-source="Changes URLs for the remote. Sets first URL for remote &amp;lt;name&amp;gt; that matches regex &amp;lt;oldurl&amp;gt; (first URL if no &amp;lt;oldurl&amp;gt; is given) to &amp;lt;newurl&amp;gt;. If &amp;lt;oldurl&amp;gt; doesn&amp;rsquo;t match any URL, an error occurs and nothing is changed." onmousemove="i18n(this)">&Icy;&zcy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy; &dcy;&lcy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&acy;. &Ucy;&scy;&tcy;&acy;&ncy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&iecy;&tcy; &pcy;&iecy;&rcy;&vcy;&ycy;&jcy; URL-&acy;&dcy;&rcy;&iecy;&scy; &dcy;&lcy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &lt;name&gt;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &rcy;&iecy;&gcy;&ucy;&lcy;&yacy;&rcy;&ncy;&ocy;&mcy;&ucy; &vcy;&ycy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&yucy; &lt;oldurl&gt; (&pcy;&iecy;&rcy;&vcy;&ycy;&jcy; URL-&acy;&dcy;&rcy;&iecy;&scy;, &iecy;&scy;&lcy;&icy; &lt;oldurl&gt; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;), &vcy; &lt;newurl&gt;. &IEcy;&scy;&lcy;&icy; &lt;oldurl&gt; &ncy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &ncy;&icy; &ocy;&dcy;&ncy;&ocy;&mcy;&ucy; URL-&acy;&dcy;&rcy;&iecy;&scy;&ucy;, &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&acy;&iecy;&tcy; &ocy;&shcy;&icy;&bcy;&kcy;&acy; &icy; &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &ncy;&iecy; &mcy;&iecy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="0f2e07be31ec1ac6bb66eebe371d3e410118b826648fbf1772416273a1b0abbc/d1" data-source="With &lt;code&gt;--push&lt;/code&gt;, push URLs are manipulated instead of fetch URLs." onmousemove="i18n(this)">&Vcy;  <code>--push</code>  &mcy;&acy;&ncy;&icy;&pcy;&ucy;&lcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy;&mcy;&icy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&jcy;, &acy; &ncy;&iecy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy;&mcy;&icy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&icy;.</span></p> <p><span data-i18n="a63f03bcd4fc6cdcac448c2c6a32298276a87b1ed7b5edf982729b0240e96304/16" data-source="With &lt;code&gt;--add&lt;/code&gt;, instead of changing existing URLs, new URL is added." onmousemove="i18n(this)">&Vcy;  <code>--add</code>  &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; URL-&acy;&dcy;&rcy;&iecy;&scy;&ocy;&vcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ncy;&ocy;&vcy;&ycy;&jcy; URL-&acy;&dcy;&rcy;&iecy;&scy;.</span></p> <p><span data-i18n="93be3d3305bbd8570944dd9378471ee5c0833ddbb1f0cc21da466fa0e8ea972e/9a" data-source="With &lt;code&gt;--delete&lt;/code&gt;, instead of changing existing URLs, all URLs matching regex &amp;lt;URL&amp;gt; are deleted for remote &amp;lt;name&amp;gt;. Trying to delete all non-push URLs is an error." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;  <code>--delete</code>  &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; URL-&acy;&dcy;&rcy;&iecy;&scy;&ocy;&vcy; &vcy;&scy;&iecy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &rcy;&iecy;&gcy;&ucy;&lcy;&yacy;&rcy;&ncy;&ocy;&mcy;&ucy; &vcy;&ycy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&yucy; &lt;URL&gt;, &ucy;&dcy;&acy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &lt;name&gt;. &Pcy;&ocy;&pcy;&ycy;&tcy;&kcy;&acy; &ucy;&dcy;&acy;&lcy;&icy;&tcy;&softcy; &vcy;&scy;&iecy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy;, &ncy;&iecy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&ncy;&ycy;&iecy; &dcy;&lcy;&yacy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&jcy;, &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&shcy;&icy;&bcy;&kcy;&ocy;&jcy;.</span></p> <p><span data-i18n="8b2d8af4ae1046e3813c9448e20340b309da6288c380b895c21026fb22621744/cd" data-source="Note that the push URL and the fetch URL, even though they can be set differently, must still refer to the same place. What you pushed to the push URL should be what you would see if you immediately fetched from the fetch URL. If you are trying to fetch from one place (e.g. your upstream) and push to another (e.g. your publishing repository), use two separate remotes." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; URL-&acy;&dcy;&rcy;&iecy;&scy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &icy; URL-&acy;&dcy;&rcy;&iecy;&scy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&icy;, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ycy; &pcy;&ocy;-&rcy;&acy;&zcy;&ncy;&ocy;&mcy;&ucy;, &vcy;&scy;&iecy; &rcy;&acy;&vcy;&ncy;&ocy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &scy;&scy;&ycy;&lcy;&acy;&tcy;&softcy;&scy;&yacy; &ncy;&acy; &ocy;&dcy;&ncy;&ocy; &icy; &tcy;&ocy; &zhcy;&iecy; &mcy;&iecy;&scy;&tcy;&ocy;. &Tcy;&ocy;, &chcy;&tcy;&ocy; &vcy;&ycy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&lcy;&icy; &ncy;&acy; URL-&acy;&dcy;&rcy;&iecy;&scy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&yacy;, &dcy;&ocy;&lcy;&zhcy;&ncy;&ocy; &bcy;&ycy;&tcy;&softcy; &tcy;&iecy;&mcy;, &chcy;&tcy;&ocy; &vcy;&ycy; &bcy;&ycy; &ucy;&vcy;&icy;&dcy;&iecy;&lcy;&icy;, &iecy;&scy;&lcy;&icy; &bcy;&ycy; &scy;&rcy;&acy;&zcy;&ucy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&lcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&icy;. &IEcy;&scy;&lcy;&icy; &vcy;&ycy; &pcy;&ycy;&tcy;&acy;&iecy;&tcy;&iecy;&scy;&softcy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &mcy;&iecy;&scy;&tcy;&acy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &icy;&zcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &icy;&scy;&tcy;&ocy;&chcy;&ncy;&icy;&kcy;&acy;) &icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &icy;&khcy; &vcy; &dcy;&rcy;&ucy;&gcy;&ocy;&iecy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &icy;&zcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &pcy;&ucy;&bcy;&lcy;&icy;&kcy;&acy;&tscy;&icy;&icy;), &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &dcy;&vcy;&acy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ycy;&khcy; &pcy;&ucy;&lcy;&softcy;&tcy;&acy; &dcy;&icy;&scy;&tcy;&acy;&ncy;&tscy;&icy;&ocy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/git-remote.txt-emshowem"> <span data-i18n="8e8a447f7f24ee873ffb2fa5f72b8f85f2d234a6697522897be3256ee3974220/0c" data-source="&lt;em&gt;show&lt;/em&gt;" onmousemove="i18n(this)"><em>show</em></span> </dt> <dd> <p><span data-i18n="8d716ff69b127cd798264c49dc0068f83cf2508be00cc08fc04dd261e07e2737/04" data-source="Gives some information about the remote &amp;lt;name&amp;gt;." onmousemove="i18n(this)">&Pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &ocy;&bcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy; &lt;&icy;&mcy;&yacy;&gt;.</span></p> <p><span data-i18n="ea07ba203b5eb68fdf1621b15b1357978bc80d572bde241e61aa4b76d17c7e61/45" data-source="With &lt;code&gt;-n&lt;/code&gt; option, the remote heads are not queried first with &lt;code&gt;git ls-remote &amp;lt;name&amp;gt;&lt;/code&gt;; cached information is used instead." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &ocy;&pcy;&tscy;&icy;&icy;  <code>-n</code>  &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &ncy;&iecy; &ocy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git ls-remote &lt;name&gt;</code> ; &Vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&acy;&yacy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/git-remote.txt-empruneem"> <span data-i18n="6f708edc76061ebed019ca2624951d2a3075d494e0d291b5c0c8e9f98f25680a/7d" data-source="&lt;em&gt;prune&lt;/em&gt;" onmousemove="i18n(this)"><em>prune</em></span> </dt> <dd> <p><span data-i18n="e003c0be509b03dee9730ccd5af5d7782c042e07a5905ac22ffbc1848bedfae4/6a" data-source="Deletes stale references associated with &amp;lt;name&amp;gt;. By default, stale remote-tracking branches under &amp;lt;name&amp;gt; are deleted, but depending on global configuration and the configuration of the remote we might even prune local tags that haven&amp;rsquo;t been pushed there. Equivalent to &lt;code&gt;git
fetch --prune &amp;lt;name&amp;gt;&lt;/code&gt;, except that no new references will be fetched." onmousemove="i18n(this)">&Ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy; &ucy;&scy;&tcy;&acy;&rcy;&iecy;&vcy;&shcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &scy;&vcy;&yacy;&zcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy; &lt;&icy;&mcy;&yacy;&gt;. &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &ucy;&scy;&tcy;&acy;&rcy;&iecy;&vcy;&shcy;&icy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &pcy;&ocy;&dcy; &lt;name&gt; &ucy;&dcy;&acy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy;, &ncy;&ocy; &vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &icy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&acy; &mcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&mcy; &dcy;&acy;&zhcy;&iecy; &ucy;&dcy;&acy;&lcy;&icy;&tcy;&softcy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &tcy;&iecy;&gcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy; &bcy;&ycy;&lcy;&icy; &tcy;&ucy;&dcy;&acy; &pcy;&ocy;&mcy;&iecy;&shchcy;&iecy;&ncy;&ycy;. &Ecy;&kcy;&vcy;&icy;&vcy;&acy;&lcy;&iecy;&ncy;&tcy;  <code>git
fetch --prune &lt;name&gt;</code>  , &zcy;&acy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &ncy;&ocy;&vcy;&ycy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &ncy;&iecy; &icy;&zcy;&vcy;&lcy;&iecy;&kcy;&acy;&yucy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="50cdef0c65bd88d32a02b710ea1e30271019a4826691d615c870ccf27a172eeb/20" data-source="See the PRUNING section of &lt;a href=&quot;git-fetch&quot;&gt;git-fetch[1]&lt;/a&gt; for what it&amp;rsquo;ll prune depending on various configuration." onmousemove="i18n(this)">&Scy;&mcy;. &rcy;&acy;&zcy;&dcy;&iecy;&lcy; &laquo;&Ocy;&Bcy;&Rcy;&IEcy;&Zcy;&Kcy;&Acy;&raquo;  <a href="git-fetch.html">git-fetch[1]</a> , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy;, &chcy;&tcy;&ocy; &ocy;&ncy; &bcy;&ucy;&dcy;&iecy;&tcy; &scy;&ocy;&kcy;&rcy;&acy;&shchcy;&acy;&tcy;&softcy; &vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&ncy;&ycy;&khcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&jcy;.</span></p> <p><span data-i18n="7a5d1d8349d3a2b78693fdb1c4aa1607b9164cc4d48457d879050bf7668f7f99/50" data-source="With &lt;code&gt;--dry-run&lt;/code&gt; option, report what branches would be pruned, but do not actually prune them." onmousemove="i18n(this)">&Scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--dry-run</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &scy;&ocy;&ocy;&bcy;&shchcy;&icy;&tcy;&softcy;, &kcy;&acy;&kcy;&icy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &ocy;&bcy;&rcy;&iecy;&zcy;&acy;&ncy;&ycy;, &ncy;&ocy; &ncy;&iecy; &ocy;&bcy;&rcy;&iecy;&zcy;&acy;&tcy;&softcy; &icy;&khcy; &ncy;&acy; &scy;&acy;&mcy;&ocy;&mcy; &dcy;&iecy;&lcy;&iecy;.</span></p> </dd> <dt id="Documentation/git-remote.txt-emupdateem"> <span data-i18n="fbaa8f5b842eff4507acacb5510f4baf8a5d948360e98e80ed9b46563d137fda/a5" data-source="&lt;em&gt;update&lt;/em&gt;" onmousemove="i18n(this)"><em>update</em></span> </dt> <dd> <p><span data-i18n="adfdff26260eca05a4da85b092f85b7fbad9c923feb900de98a60b92ec3f2106/c4" data-source="Fetch updates for remotes or remote groups in the repository as defined by &lt;code&gt;remotes.&amp;lt;group&amp;gt;&lt;/code&gt;. If neither group nor remote is specified on the command line, the configuration parameter remotes.default will be used; if remotes.default is not defined, all remotes which do not have the configuration parameter &lt;code&gt;remote.&amp;lt;name&amp;gt;.skipDefaultUpdate&lt;/code&gt; set to true will be updated. (See &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;)." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &dcy;&lcy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy; &icy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &gcy;&rcy;&ucy;&pcy;&pcy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;, &kcy;&acy;&kcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ocy;  <code>remotes.&lt;group&gt;</code> . &IEcy;&scy;&lcy;&icy; &vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ycy; &ncy;&icy; &gcy;&rcy;&ucy;&pcy;&pcy;&acy;, &ncy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;, &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; Remotes.default; &iecy;&scy;&lcy;&icy; Remotes.default &ncy;&iecy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;, &vcy;&scy;&iecy; &pcy;&ucy;&lcy;&softcy;&tcy;&ycy;, &ucy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &dcy;&lcy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>remote.&lt;name&gt;.skipDefaultUpdate</code>  &ncy;&iecy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  true , &bcy;&ucy;&dcy;&ucy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ycy;. (&Scy;&mcy;.  <a href="git-config.html">git-config[1]</a> ).</span></p> <p><span data-i18n="2527bdf6eff4eaa2430e4c8c93e62d227b5fd748303fea0e66ca66c734446044/08" data-source="With &lt;code&gt;--prune&lt;/code&gt; option, run pruning against all the remotes that are updated." onmousemove="i18n(this)">&Scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--prune</code>  &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy; &ocy;&bcy;&rcy;&iecy;&zcy;&kcy;&ucy; &dcy;&lcy;&yacy; &vcy;&scy;&iecy;&khcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &pcy;&ucy;&lcy;&softcy;&tcy;&ocy;&vcy; &dcy;&icy;&scy;&tcy;&acy;&ncy;&tscy;&icy;&ocy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_discussion"><span data-i18n="5eb6cf647d2c5d14a044e2d103dcef4cf0cdc872434c374debc1043092bc4746/dd" data-source="Discussion" onmousemove="i18n(this)">Discussion</span></h2> <div> <p><span data-i18n="4880189f2e59ce2c477dfdffededbe9ad17fadc5de1d647120b2f56dc607fa41/56" data-source="The remote configuration is achieved using the &lt;code&gt;remote.origin.url&lt;/code&gt; and &lt;code&gt;remote.origin.fetch&lt;/code&gt; configuration variables. (See &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;)." onmousemove="i18n(this)">&Ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&acy;&yacy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&acy; &ocy;&scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&khcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>remote.origin.url</code>  &icy;  <code>remote.origin.fetch</code> . (&Scy;&mcy;.  <a href="git-config.html">git-config[1]</a> ).</span></p> </div> <h2 class="text-body-emphasis"  id="_exit_status"><span data-i18n="f69b3d7f77a6dbe69851fce8d2fc115d844d8bbfb35250ad889373b3d4663ea2/e8" data-source="Exit status" onmousemove="i18n(this)">Exit status</span></h2> <div> <p><span data-i18n="09b2700e3b1a50886640852dd2871d5f0c8cbff98af4668c6c928b809a79867a/9f" data-source="On success, the exit status is &lt;code&gt;0&lt;/code&gt;." onmousemove="i18n(this)">&Vcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ucy;&scy;&pcy;&iecy;&khcy;&acy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &mdash;  <code>0</code> .</span></p> <p><span data-i18n="ada9456d4cdbbe2d8918c29a03671a44f0bc161a1725548ab42c0b15deac9892/ea" data-source="When subcommands such as &lt;code&gt;add&lt;/code&gt;, &lt;code&gt;rename&lt;/code&gt;, and &lt;code&gt;remove&lt;/code&gt; can&amp;rsquo;t find the remote in question, the exit status is &lt;code&gt;2&lt;/code&gt;. When the remote already exists, the exit status is &lt;code&gt;3&lt;/code&gt;." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &tcy;&acy;&kcy;&icy;&iecy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;, &kcy;&acy;&kcy;  <code>add</code> ,  <code>rename</code>  &icy;  <code>remove</code> , &ncy;&iecy; &mcy;&ocy;&gcy;&ucy;&tcy; &ncy;&acy;&jcy;&tcy;&icy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&jcy; &pcy;&ucy;&lcy;&softcy;&tcy;, &scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &mdash;  <code>2</code> . &IEcy;&scy;&lcy;&icy; &pcy;&ucy;&lcy;&softcy;&tcy; &ucy;&zhcy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &mdash;  <code>3</code> .</span></p> <p><span data-i18n="2513833059224ce17bd2f0828cff595208ebe534f58f352294e613ec037e2b76/c8" data-source="On any other error, the exit status may be any other non-zero value." onmousemove="i18n(this)">&Vcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &lcy;&yucy;&bcy;&ocy;&jcy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &ocy;&shcy;&icy;&bcy;&kcy;&icy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; &lcy;&yucy;&bcy;&ocy;&iecy; &dcy;&rcy;&ucy;&gcy;&ocy;&iecy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_examples"><span data-i18n="e68ee04dff59551b7d1ae07a2f8a00dc61d841628948da3d2781630706a05e92/38" data-source="Examples" onmousemove="i18n(this)">Examples</span></h2> <div> <div> <ul> <li> <p><span data-i18n="ad0d7ff9acf017fe64d5e2c1f3ec365f8b9c94963ebfb0dd7349fe806021baf5/88" data-source="Add a new remote, fetch, and check out a branch from it" onmousemove="i18n(this)">&Dcy;&ocy;&bcy;&acy;&vcy;&softcy;&tcy;&iecy; &ncy;&ocy;&vcy;&ycy;&jcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &kcy;&ocy;&mcy;&pcy;&softcy;&yucy;&tcy;&iecy;&rcy;, &icy;&zcy;&vcy;&lcy;&iecy;&kcy;&icy;&tcy;&iecy; &icy; &icy;&zcy;&vcy;&lcy;&iecy;&kcy;&icy;&tcy;&iecy; &icy;&zcy; &ncy;&iecy;&gcy;&ocy; &vcy;&iecy;&tcy;&kcy;&ucy;.</span></p> <div> <div> <pre class="hljs language-ruby"><span class="hljs-variable">$ </span>git remote
origin
<span class="hljs-variable">$ </span>git branch -r
  origin/<span class="hljs-variable constant_">HEAD</span> -&gt; origin/master
  origin/master
<span class="hljs-variable">$ </span>git remote add staging <span class="hljs-symbol">git:</span>/<span class="hljs-regexp">/git.kernel.org/</span>.../gregkh/staging.git
<span class="hljs-variable">$ </span>git remote
origin
staging
<span class="hljs-variable">$ </span>git fetch staging
...
<span class="hljs-title class_">From</span> <span class="hljs-symbol">git:</span>/<span class="hljs-regexp">/git.kernel.org/pub</span><span class="hljs-regexp">/scm/linux</span><span class="hljs-regexp">/kernel/git</span><span class="hljs-regexp">/gregkh/staging</span>
 * [new branch]      master     -&gt; staging/master
 * [new branch]      staging-linus -&gt; staging/staging-linus
 * [new branch]      staging-<span class="hljs-keyword">next</span> -&gt; staging/staging-<span class="hljs-keyword">next</span>
<span class="hljs-variable">$ </span>git branch -r
  origin/<span class="hljs-variable constant_">HEAD</span> -&gt; origin/master
  origin/master
  staging/master
  staging/staging-linus
  staging/staging-<span class="hljs-keyword">next</span>
<span class="hljs-variable">$ </span>git switch -c staging staging/master
...</pre> </div> </div> </li> <li> <p><span data-i18n="01d1757cea3dd67d504faa8f614a3395e4b609e53ab4d89a9724eed6adc188f0/0a" data-source="Imitate &lt;code&gt;git clone&lt;/code&gt; but track only selected branches" onmousemove="i18n(this)">&Icy;&mcy;&icy;&tcy;&icy;&rcy;&ucy;&jcy;&tcy;&iecy;  <code>git clone</code> , &ncy;&ocy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&jcy;&tcy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy;&ycy;&bcy;&rcy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy;.</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">mkdir</span> project.git</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">cd</span> project.git</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git init</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git remote add -f -t master -m master origin git://example.com/git.git/</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git merge origin</span></pre> </div> </div> </li> </ul> </div> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p> <span data-i18n="578b4cea10506a29954406d0ea74406a86c9f1842a443d92ab616c4e962e1695/f7" data-source="&lt;a href=&quot;git-fetch&quot;&gt;git-fetch[1]&lt;/a&gt;&lt;a href=&quot;git-branch&quot;&gt;git-branch[1]&lt;/a&gt;&lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;" onmousemove="i18n(this)"><a href="git-fetch.html">git-fetch[1]</a><a href="git-branch.html">git-branch[1]</a><a href="git-config.html">git-config[1]</a></span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-remote">https://git-scm.com/docs/git-remote</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-remote-ext.html">
                            git remote-ext                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-remote-fd.html">
                            git remote-fd                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-repack.html">
                            git repack                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-replace.html">
                            git replace                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-request-pull.html">
                            git request-pull                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-rerere.html">
                            git rerere                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-reset.html">
                            git reset                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-remote.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>